import request from '../utils/request'  
import cfg from '@/config/config'

const leaveManagement = {
    //获取离职人员信息
    getLeavePersonList:(param) => {
        return request('post', cfg.apiUrl + 'leaveManagement/getLeavePersonList',param);
    },
    //复职 
    recoveryOccupation:(param) => {
        return request('post', cfg.apiUrl + 'leaveManagement/recoveryOccupation',param);
    },
    transferPerson:(param) => {
        return request('post', cfg.apiUrl + 'leaveManagement/transferPerson',param);
    },
    //离职人员导出
    getleavePersonListsExcel:(param) => {
        window.open(cfg.apiUrl + "leaveManagement/getleavePersonListsExcel?" + param,"_self");
    },
}
export default leaveManagement;
